fetcher: Close request body on error paths
authorColin Walters <walters@verbum.org>
Wed, 20 Aug 2014 14:23:28 +0000 (10:23 -0400)
committerColin Walters <walters@verbum.org>
Wed, 27 Aug 2014 18:00:31 +0000 (14:00 -0400)
commitc08a4503ced62e66418a4bc0c8cb519e783ca3b6
tree85349466669f33fca478dad6b08833c6b28c3e31
parent6dfe99a283e9327b70f636cf82da3fa439576645
fetcher: Close request body on error paths

Otherwise, we're potentially holding up subsequent requests.

I was hitting this when testing the metalink code, where we want to
continue doing more fetches after hitting a 404.

https://bugzilla.gnome.org/show_bug.cgi?id=729585
src/libostree/ostree-fetcher.c